import com.abc.www.Test1;

import java.util.Arrays;
import java.util.Date;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-05-21
 * Time: 9:34
 */

class Student{
    public String name;
    public int age;
    public String stuNum;
    public static String classNum;

    public Student(String name, int age, String stuNum) {
        this.name = name;
        this.age = age;
        this.stuNum = stuNum;
    }

}

public class Test {
    public static void main(String[] args) {
        Student student1 = new Student("张三",18,"202311");
        //通过对象的引用来访问
        student1.classNum = "1班";
        //通过类名访问
        Student.classNum = "1班";
        Student student2 = new Student("李四",19,"202312");

    }
}

/*public class Test {
    public static void main(String[] args) {
        Test1 test1 = new Test1();
        test1.test1();
        int[] a = new int[]{5,4,3,2,1};
        Arrays.sort(a);
    }

    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        Date date = new Date();
        java.sql.Date date1 = new java.sql.Date(10);

    }

    public static void main1(String[] args) {
        Student student = new Student();
        student.setName("张三");
        System.out.println(student.getName());
    }
}*/
/*
class Student{
    private String name;
    private int age;
    private String stuNum;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }
}
*/
